package us.ohec.utils {
  
  [Bindable]
  public class StateUtil {
    public static var stateNamesShort:Array = ["ACT", "NSW", "NT", "QLD", "SA", "TAS", "VIC", "WA"];
    public static var stateNamesLong:Array = ["AUSTRALIAN CAPITOL TERRITORY", "NEW SOUTH WALES", "NORTHERN TERRITORY", "QUEENSLAND", "SOUTH AUSTRALIA", "TASMANIA", "VICTORIA", "WESTERN AUSTRALIA"];
  
    public static function getLongStateName(index:Number):String {
        return stateNamesLong[index];
    }
    
    public static function getLongStateIndex(state:String):int {
        return stateNamesLong.indexOf(state);
    }
    
    public static function getShortStateName(index:Number):String {
        return stateNamesShort[index];
    }
    
    public static function getShortStateIndex(state:String):int {
        return stateNamesShort.indexOf(state);
    }
  }
}